package chapter15;

/**
 * Created by V5470-I5 on 2016/4/22.
 */
public class SplitDemo3 {
    public static void main (String[] args){
        for(String str:"messi dog neymar doggie suares".split("\\dog\\b")){
            System.out.println(str.trim());
        }
    }
}
